package com.museum.entity.DO;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author Ruiwen
 * @since 2020-12-19
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="Token对象", description="")
public class Token implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "token")
    private String token;

    @ApiModelProperty(value = "是否活跃状态")
    @TableField("isAvailability")
    private Integer isAvailability;

    @ApiModelProperty(value = "登陆状态")
    @TableField("loginType")
    private String loginType;

    @ApiModelProperty(value = "设备信息")
    @TableField("deviceInfor")
    private String deviceInfor;

    @ApiModelProperty(value = "ip地址")
    @TableField("IPV4")
    private String ipv4;

    @ApiModelProperty(value = "用户ID")
    @TableField("userId")

    private Integer userId;


    @TableField(fill = FieldFill.INSERT)
    @ApiModelProperty(value = "创建时间")
    private String createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    @ApiModelProperty(value = "更新时间")
    private String updateTime;


}
